package org.hy.domain.global;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 通知类
 * @author Tom.Feng
 *
 */
public class Notification extends Recv {
	public static int SYSTEM = 1;//系统通知
	public static int VERIFICATION = 2;//验证消息
	public static int GROUP_VERIFICATION = 3;//小组验证消息
	public static int GROUP_NOTIFY = 4;//小组通知
	
	
	private Integer type;//replace of enum
	
	private String content;
	
	private String url;//在一众消息POJO里，这个属性是Notification特有的

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public String toString() {
		
		ToStringBuilder builder = new ToStringBuilder(this,ToStringStyle.SIMPLE_STYLE);	
		
		return builder.toString();
	}
}
